package com.taofengsdk.okhttp.exception;

/**
 * Created by tao on 17-3-12.
 * @function 自定义异常
 */

public class OkHttpException extends Exception {

    private static final long serialVersionUID = 1L;

    private int code;
    private Object emsg;

    public OkHttpException(int code, Object message) {
        this.code = code;
        this.emsg = message;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getEmsg() {
        return emsg;
    }

    public void setEmsg(Object emsg) {
        this.emsg = emsg;
    }
}
